home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / CIIGSIncludes / StdFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-01  |  3.0 KB  |  105 lines  |  [TEXT/MPS ]

  1. /********************************************
  2. ; File: StdFile.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc.1986-90
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9.  
  10. #ifndef __TYPES__
  11. #include <TYPES.h>
  12. #endif
  13.  
  14. #ifndef __STDFILE__
  15. #define __STDFILE__
  16.  
  17.  
  18. /* Error Codes */
  19. #define badPromptDesc 0x1701
  20. #define badOrigNameDesc 0x1702
  21. #define badReplyNameDesc 0x1704
  22. #define badReplyPathDesc 0x1705
  23. #define badCall 0x1706
  24.  
  25. /* filterProc Result Codes */
  26. #define noDisplay 0x0000  /* file not to be displayed */
  27. #define noSelect 0x0001  /* file displayed, but not selectable */
  28. #define displaySelect 0x0002  /* file displayed and selectable */
  29.  
  30. /* Other Constants */
  31. #define sfWildAuxType 0x8000
  32. #define sfMatchFileType 0x8000
  33. #define sfWildFileType 0x4000
  34. #define sfMatchAuxType 0x4000
  35. #define sfDisplayGrey 0x2000
  36. #ifndef sfFileTypeEntriesLength  /* SFTypeList - default number of FileTypeEntries */
  37. #define sfFileTypeEntriesLength 0x0005
  38. #endif
  39.  
  40. typedef struct SFReplyRec {
  41.    Boolean good;
  42.    Word fileType;
  43.    Word auxFileType;
  44.    char filename[16];
  45.    char fullPathname[129];
  46. } SFReplyRec, *SFReplyRecPtr, **SFReplyRecHndl;
  47.  
  48. struct SFReplyRec2 {
  49.    Boolean good;
  50.    Word fileType;
  51.    LongWord auxType;
  52.    RefDescriptor nameRefDesc;
  53.    Ref nameRef;
  54.    RefDescriptor pathRefDesc;
  55.    Ref pathRef;
  56. } ;
  57. typedef struct SFReplyRec2 SFReplyRec2, *SFReplyRec2Ptr, **SFReplyRec2Hndl;
  58.  
  59. struct MultiReplyRecord {
  60.    Word good;
  61.    Handle namesHandle;
  62. } ;
  63. typedef struct MultiReplyRecord MultiReplyRecord, *MultiReplyPtr;
  64.  
  65. struct SFTypeList {
  66.    Byte numEntries;
  67.    Byte fileTypeEntries[sfFileTypeEntriesLength];
  68. } ;
  69. typedef struct SFTypeList SFTypeList, *SFTypeListPtr, **SFTypeListHndl;
  70.  
  71. struct TypeSelector2 {
  72.    Word flags;
  73.    Word fileType;
  74.    LongWord auxType;
  75. } ;
  76. typedef struct TypeSelector2 TypeSelector2;
  77.  
  78. struct SFTypeList2 {
  79.    Word numEntries;
  80.    TypeSelector2 fileTypeEntries[sfFileTypeEntriesLength];
  81. } ;
  82. typedef struct SFTypeList2 SFTypeList2, *SFTypeList2Ptr;
  83.  
  84. extern pascal void SFAllCaps() inline(0x0D17,dispatcher);
  85. extern pascal void SFBootInit() inline(0x0117,dispatcher);
  86. extern pascal void SFGetFile() inline(0x0917,dispatcher);
  87. extern pascal void SFGetFile2() inline(0x0E17,dispatcher);
  88. extern pascal void SFMultiGet2() inline(0x1417,dispatcher);
  89. extern pascal void SFPGetFile() inline(0x0B17,dispatcher);
  90. extern pascal void SFPGetFile2() inline(0x1017,dispatcher);
  91. extern pascal void SFPMultiGet2() inline(0x1517,dispatcher);
  92. extern pascal void SFPPutFile() inline(0x0C17,dispatcher);
  93. extern pascal void SFPPutFile2() inline(0x1117,dispatcher);
  94. extern pascal void SFPutFile() inline(0x0A17,dispatcher);
  95. extern pascal void SFPutFile2() inline(0x0F17,dispatcher);
  96. extern pascal void SFReScan() inline(0x1317,dispatcher);
  97. extern pascal void SFReset() inline(0x0517,dispatcher);
  98. extern pascal Boolean SFShowInvisible() inline(0x1217,dispatcher);
  99. extern pascal void SFShutDown() inline(0x0317,dispatcher);
  100. extern pascal void SFStartUp() inline(0x0217,dispatcher);
  101. extern pascal Boolean SFStatus() inline(0x0617,dispatcher);
  102. extern pascal Word SFVersion() inline(0x0417,dispatcher);
  103.  
  104. #endif
  105.